Double error correction - triple error detection code

ABSTRACT

A code is generated using BCH coding theory which corrects double bit failures and detects triple failures and packaging errors. The code is a shortened code in which both data and check bit columns have been removed from the parity check matrix. A decoding technique is used which splits the look-up tables used to reduce their size.

BACKGROUND OF THE INVENTION

The present invention relates to error correcting codes for the correction of double errors and the detection of triple and packaging errors in memory arrays.

A double error correcting and triple error detecting (DEC-TED) code can be constructed based on the well known BCH coding theory (see W. W. Peterson and E. J. Weldon, Jr., Error Correcting Codes, 1972, MIT Press). To do this, let o^(c) be a primitive element of the finite field GF(2^(m)), and n=2^(m) -1. If an element of GF(2^(m)) is then expressed as a binary m-tuple, a DEC-TED BCH code of length n can be defined as the code with the following parity check matrix: ##EQU1## The number of check bits ν and the number of data bits k for this code are 2m+1 and n-2m-1 respectively. If 128 data bits are to be protected by the code, it should be apparent that m must be 8 or larger. For m=8 there is a (255,238) DEC-TED BCH code with n=255, k=238, and ν=17.

BCH codes can be shortened to a desired length by deleting data bit columns from the parity check matrix of the code. Doing this, a (145,128) shortened code can be obtained from the (255,238) DEC-TED BCH code defined by the matrix H in (1).

The number of check bits may also be reduced in the code shortening process by properly choosing the data bit columns in the parity check matrix to be deleted. An article by the inventor on how to do this, entitled "On Shortened Finite Geometry Codes" appeared in the April 1972 issue of Information and Control beginning on page 216. To use techniques described in the article on the parity check matrix H of (1):

(1) Apply elementary row operations (see page 32, W. W. Peterson and E. J. Weldon, Jr., Error Correcting Codes, 1972, MIT Press) on the parity check matrix H. Let H₁ be the matrix after the row operations, and V be a row vector of H₁.

(2) Delete from H₁ the row vector V and the column vectors at positions corresponding to the 1's in V. The resulting matrix is the parity check matrix of a shortened DEC-TED code with 2m check bits.

If m is even, a row vector that contains 2^(m-1) ₋ 2^(m/2) -1 1's can always be found by applying elementary row operations on the matrix H. Applying the shortening scheme above, a DEC-TED code with k=2^(m-1) +2^(m/2), ν=2m can be constructed. If m is odd, a row vector that contains 2^(m-1) -2.sup.(m-1)/2 -1 1's can be found by applying elementary row operations on the matrix H. Thus, a DEC-TED code with k 2^(m-1) +2.sup.(m-1)/2, ν=2m can be constructed.

THE INVENTION

In accordance with the present invention the following matrix was generated for a 144,128 code. ##EQU2##

In the parity matrix H of (2), each column represents one bit position of the code word. The vertical lines between columns represent a package boundary. That is, each 9 bits in the 144 bit code word are on a different package. (This formulation of H is convenient for applications where the widths of the data path are multiples of 9 bits.) The binary ones in each of the 16 rows in the matrix H show which bits are exclusive ORed together by an encoder to generate one of the 16 check bits stored with the 128 data bits. Bit positions 1, 10, 19, 28, 37, 46, 50, 64, 73, 82, 91, 100, 109, 118, 127 and 136 are check bits. The horizontal line indicates that code and is divisable into 2 data words.

Repackaging to four bit positions per card using row and column swapping results in the following H matrix. ##EQU3##

A package error is now detectable i.e. the error is not miscorrected as a single error or a double error. When a UE is detected, the UE syndrome is compared with four triple error syndrome patterns and one quadruple error syndrome patterns for each of the 36 packages to identify the failing package. Table look-up is used in identifying the location of all one and two bit errors in the codeword. The look-up tables are split to considerably reduce the amount of storage space needed to perform the look-up task.

Therefore, it is an object of the present invention to provide a new code to correct single and double bit errors and detect triple bit errors (DEC-TED code).

It is another object of the present invention to provide a DEC-TED code which detects package errors.

It is a further object of the invention to provide a new table look-up scheme for use on correcting and protecting multiple bit errors.

THE DRAWINGS

These and other objects of the invention can best be understood by reference to the embodiment of the invention illustrated in the accompanying drawings of which:

FIG. 1 is a schematic representation of a memory employing the present invention;

FIG. 2 is a schematic representation of an ECC encoder for the memory shown in FIG. 1;

FIG. 3 is a schematic for an ECC decoder for the memory shown in FIG. 1.

THE PREFERRED EMBODIMENT

In FIG. 1, a 144-bit codeword is stored in a memory on 36 memory cards 10 with four bit positions on each card. For reasons that should now be apparent, 16 bits of the 144-bit codeword are check bits and 128 are data bits.

As shown in FIG. 2, a conventional exclusive OR encoding tree 12 is used to generate the parity bits stored in the memory of FIG. 1. The encoding tree is configured in accordance with the parity matrix H of (3). For instance, the check bit in the first bit location of card 33 is the exclusive-OR of the data in all the bit positions marked with a 1 in the first row of the H matrix. If 2-way exclusive-OR gates are used, each check bit is generated using no more than 70 exclusive-OR gates and 7 levels of logic delay.

In FIG. 3 the 16 bit output of the syndrome generator 16 is logically the exclusive-OR of the 144 data and check bits read out of the memory 10 shown in FIG. 1. The syndrome can also be considered a 16-bit vector obtained as a result of the product of H and the transpose of the received code word. In addition, the syndrome is the XOR of the received check bits and the check bits generated from the received data bits.

If the syndrome S is an all 0's vector, the code word is error free. If the syndrome is a non-zero vector, the first 15 bits of S are used as an address to access the contents of a read-only-memory (ROM) 18. The output of ROM 18 is the 8-bit vector E1 accessed by the 15 syndrome bits at the addresses. The vector E1 is either an all 0's vector or a column vector of the 8×144 matrix M shown below. ##EQU4##

The non-zero entries in the ROM 18 are obtained by the following algorithm:

(1) Store the bit pattern of column i of M at the address specified by column i of H1, where H1 is a matrix formed by the first 15 row vectors of H (3).

(2) Store the bit pattern of column i of M at the address specified by the XOR of columns i and j of H1, where i<j.

If E1 is equal to one of these non-zero entries and S≠0, E1 is fed to a ROM 28 which converts E1 from a Galios field element to a number in the binary sequence. This binary number is fed to a binary decoder 40 that decodes the number into an address of one of the failing bits.

In addition, if the syndrome S is non-zero, the following transformation is made:

    E0=T·S.sup.t,

where S^(t) is the transpose of S, and T is the matrix shown below ##EQU5##

The matrix T is embodied in a logic array 20 which has an XOR element located at each location in the array 20 corresponding to a location in the matrix marked with a 1. The array is configured so that each 16 bit syndrome accesses one of its columns with the result that the 8 bit syndrome E0 is read out of the array 20.

Mathematically, M, T, and H are related by the equation

    M=T·H.

Let h₁ and h₂ be the columns of H (equation 3) where two errors occurred. The syndrome is S=h₁ +h₂. Define the modified syndrome as

    S'=T·S.sup.t,

where S^(t) L is the transpose of S. The S' equals a column of M. Since the columns of M are all distinct, the columns can be used to designate the error locations. Thus, let E₁ =T·h₁ ^(t) and E₂ =t·h₂ ^(t).

We have S'=T S^(t) =E₁ +E₂. The first error E₁ is obtained from the ROM 18. The second error E₂ can be obtained by the XOR of E₁ and S'. The modified syndrome S' is E0 obtained from the array 20.

The outputs of ROM 18 and array 20 are fed into XOR gates 22 which XOR E0 and E1 together bit position by bit position to generate E2. If E2 is non-zero and the weight of S is even, E2 identifies a second correctable error in a codeword. Like E1 it is then decoded into an error bit position using a Galois to binary look-up converter 42 and a binary decoder 44.

If S is non-zero and E1 is an all 0's vectors, or E2 is non-zero and the weight of S is odd, the errors are uncorrectable errors (UE's). The first UE condition detected by ANDing the outputs of two zero detect circuits 24 and 26 in AND circuit 28. The zero detect circuit 24 monitors the output of the syndrome decoder 16 and the other zero detect circuit 26 monitors the output of the ROM 18. The second UE condition is determined by AND circuit 30 which ANDs the output of a non-zero detect circuit 32 that detects a non-zero E2 output and the output of an exclusive OR circuit 34 which determines if the sum of the bits in the syndrome is odd. Outputs of both AND circuits 28 and 30 are fed to OR circuit 36 which provides the UE output signal.

To locate a failing four bit package 10, the UE output signal gates the syndrome S into a comparator 48 which compares the syndrome S with four syndrome patterns for three bit failures on each card 10 and one syndrome pattern for a four bit failure on each card 10. The output of this comparator 1 is the address of the card 10 that has failed. The syndromes for card failures 50 can be hardwired to the comparator 48 or can be software that is fed to the comparator. The table below lists 1 each of the 16 bit syndromes indicating a card failure alongside a 2 bit number designating the card or package that failed.

    ______________________________________                                                              Card                                                      Syndrome             ID                                                        ______________________________________                                         0 0 1 0 0 1 1 0 0 1 0 0 1 1 0 1                                                                     1                                                         1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 1                                                                     1                                                         0 0 0 1 1 0 1 0 0 0 0 1 1 1 0 1                                                                     1                                                         0 0 0 0 1 1 0 0 1 0 0 1 1 1 1 0                                                                     1                                                         1 0 0 1 1 0 0 0 1 1 0 0 1 1 0 1                                                                     1                                                         0 1 0 0 1 1 1 1 1 0 0 0 0 1 1 1                                                                     2                                                         1 1 0 1 0 1 1 1 0 0 1 0 1 1 0 0                                                                     2                                                         0 0 0 1 0 1 1 0 0 0 1 1 1 1 0 0                                                                     2                                                         0 0 0 0 1 1 0 1 1 0 0 1 0 1 0 1                                                                     2                                                         1 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0                                                                     2                                                         0 1 0 1 1 1 0 0 1 0 1 1 1 0 1 0                                                                     3                                                         0 0 0 0 0 1 1 1 1 0 1 0 1 0 0 1                                                                     3                                                         1 1 0 1 0 1 1 0 1 1 1 0 0 0 1 0                                                                     3                                                         0 0 0 0 1 1 1 0 0 1 0 0 0 1 1 1                                                                     3                                                         1 0 0 0 0 0 1 1 1 0 1 1 0 1 1 0                                                                     3                                                         1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0                                                                     4                                                         0 0 0 1 0 1 0 1 1 0 1 1 1 0 0 0                                                                     4                                                         0 0 0 1 1 0 1 0 0 1 1 0 0 0 1 1                                                                     4                                                         0 1 1 0 1 0 0 1 1 1 0 1 0 1 0 1                                                                     4                                                         1 0 0 1 1 0 0 1 1 0 0 0 1 1 1 0                                                                     4                                                         0 1 0 0 1 0 1 0 1 0 0 1 0 0 1 1                                                                     5                                                         0 0 0 0 1 1 1 1 1 0 1 0 0 0 1 0                                                                     5                                                         1 0 0 1 1 0 1 1 0 1 1 0 0 1 1 0                                                                     5                                                         0 1 0 1 1 1 0 0 1 1 1 0 0 1 0 1                                                                     5                                                         1 0 0 0 0 0 1 0 1 0 1 1 0 0 1 0                                                                     5                                                         0 1 1 1 1 1 1 0 1 0 0 1 0 1 1 1                                                                     6                                                         0 1 0 1 1 0 1 0 0 1 0 0 0 0 0 0                                                                     6                                                         1 0 0 1 1 0 1 1 1 1 1 1 0 0 0 0                                                                     6                                                         1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1                                                                     6                                                         0 1 1 0 1 1 0 0 0 1 1 1 1 1 1 0                                                                     6                                                         0 1 0 1 0 1 1 1 0 1 1 0 1 1 0 0                                                                     7                                                         1 0 0 0 1 0 0 0 1 1 1 1 1 0 0 0                                                                     7                                                         1 1 0 0 0 0 1 0 1 1 1 1 0 1 0 1                                                                     7                                                         1 0 1 0 1 1 1 0 0 1 0 0 0 0 0 1                                                                     7                                                         1 0 1 1 0 0 1 1 0 0 1 0 0 0 0 0                                                                     7                                                         1 1 1 1 0 1 1 0 0 1 0 1 1 1 1 0                                                                     8                                                         0 1 0 1 0 0 0 0 0 0 1 1 0 0 0 1                                                                     8                                                         1 0 0 0 1 0 1 0 0 0 1 1 1 0 0 1                                                                     8                                                         1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1                                                                     8                                                         1 0 1 0 1 0 0 0 1 0 0 1 0 1 1 1                                                                     8                                                         0 1 0 0 1 0 0 0 1 0 1 1 0 1 0 1                                                                     9                                                         1 0 1 0 1 0 1 1 0 1 1 0 1 1 0 0                                                                     9                                                         1 1 1 1 0 0 1 0 1 0 0 1 1 1 0 0                                                                     9                                                         0 1 1 1 1 0 0 1 1 1 1 0 1 1 0 1                                                                     9                                                         0 1 1 0 1 0 0 0 1 0 1 0 1 0 0 0                                                                     9                                                         0 1 1 0 0 1 1 0 1 1 0 0 1 0 0 0                                                                     10                                                        1 0 1 1 1 0 0 0 0 1 1 0 1 1 1 0                                                                     10                                                        0 1 0 1 0 1 0 0 0 1 1 1 1 1 0 1                                                                     10                                                        1 1 1 1 1 1 1 0 0 1 0 0 1 1 0 1                                                                     10                                                        0 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0                                                                     10                                                        1 1 1 1 0 1 1 1 1 0 0 0 0 0 1 0                                                                     11                                                        1 0 0 1 1 1 1 0 1 0 0 1 0 1 0 1                                                                     11                                                        1 0 1 1 0 0 0 0 1 1 1 1 1 0 1 0                                                                     11                                                        1 0 1 0 1 1 1 0 1 1 1 0 1 0 0 0                                                                     11                                                        0 1 1 1 0 1 1 1 0 0 0 0 0 1 0 1                                                                     11                                                        1 0 0 1 1 1 0 0 0 0 1 1 0 0 1 0                                                                     12                                                        1 1 1 0 0 1 1 1 0 1 1 0 0 1 0 0                                                                     12                                                        0 1 1 1 1 0 0 0 1 0 0 1 0 1 1 1                                                                     12                                                        0 1 0 0 1 1 0 0 0 0 0 1 1 0 0 0                                                                     12                                                        0 1 0 0 1 1 1 1 1 1 0 1 1 0 0 1                                                                     12                                                        0 1 1 1 1 1 0 1 0 0 0 0 1 0 1 1                                                                     13                                                        0 1 0 0 0 1 0 0 0 1 0 0 0 1 1 0                                                                     13                                                        1 0 1 1 0 1 1 0 0 0 0 0 0 1 0 1                                                                     13                                                        1 1 1 1 0 1 0 0 0 1 0 1 1 0 1 0                                                                     13                                                        0 1 1 1 1 0 1 1 0 0 0 1 0 0 1 0                                                                     13                                                        0 0 1 1 1 1 1 1 0 0 0 1 0 1 0 1                                                                     14                                                        1 0 1 1 1 0 0 0 0 1 0 1 1 1 1 0                                                                     14                                                        0 1 1 1 0 1 0 1 1 0 1 0 1 0 1 0                                                                     14                                                        0 1 1 1 0 1 1 1 0 1 0 0 0 1 1 0                                                                     14                                                        1 0 0 0 0 1 0 1 1 0 1 0 0 1 1 1                                                                     14                                                        0 0 1 1 0 0 1 1 1 1 0 0 1 0 0 0                                                                     15                                                        1 1 0 0 1 1 0 1 0 0 0 0 1 1 1 1                                                                     15                                                        1 0 1 1 1 1 0 0 1 1 1 1 0 1 1 0                                                                     15                                                        0 0 0 1 1 1 1 1 0 0 0 1 1 1 0 1                                                                     15                                                        0 1 0 1 1 1 0 1 0 0 1 0 1 1 0 0                                                                     15                                                        1 0 0 1 0 0 0 0 1 1 1 1 0 0 1 0                                                                     16                                                        0 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1                                                                     16                                                        0 0 1 1 0 0 0 1 0 0 0 0 1 0 1 0                                                                     16                                                        0 0 0 0 1 0 1 1 1 1 0 1 1 1 1 0                                                                     16                                                        1 1 0 0 0 0 1 0 0 1 1 1 0 1 0 1                                                                     16                                                        1 1 1 0 0 1 1 0 1 1 0 0 0 1 0 1                                                                     17                                                        0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 0                                                                     17                                                        1 0 0 1 1 1 1 1 1 0 0 1 1 1 0 1                                                                     17                                                        1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1                                                                     17                                                        1 1 1 0 0 0 0 0 1 0 1 1 1 0 0 1                                                                     17                                                        1 0 0 1 0 1 0 1 0 0 0 1 1 0 0 1                                                                     18                                                        0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 0                                                                     18                                                        1 0 0 0 0 0 1 1 0 0 1 0 1 0 0 0                                                                     18                                                        1 1 1 1 1 0 1 0 0 1 1 0 1 1 1 0                                                                     18                                                        1 1 1 0 0 1 0 1 1 1 1 1 1 0 1 1                                                                     18                                                        0 1 1 1 1 1 0 1 1 0 0 1 1 0 0 0                                                                     19                                                        1 1 1 0 1 0 0 0 1 0 1 0 1 1 0 1                                                                     19                                                        1 1 0 0 0 0 0 1 0 0 1 1 0 1 1 0                                                                     19                                                        1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0                                                                     19                                                        1 1 0 0 1 0 0 1 1 1 1 1 0 0 1 1                                                                     19                                                        0 0 1 0 1 1 0 1 1 0 1 0 0 0 1 0                                                                     20                                                        1 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0                                                                     20                                                        1 0 0 1 1 1 1 0 0 0 0 0 0 1 0 1                                                                     20                                                        1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1                                                                     20                                                        1 0 0 0 0 1 0 0 1 1 0 0 0 1 1 0                                                                     20                                                        0 0 1 1 0 1 0 1 0 1 0 1 1 1 1 0                                                                     21                                                        1 1 0 0 0 1 1 1 1 1 0 1 1 1 0 1                                                                     21                                                        1 0 0 0 1 0 1 1 1 0 0 0 1 1 0 0                                                                     21                                                        1 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1                                                                     21                                                        1 1 0 1 1 1 0 0 0 0 1 0 0 1 1 0                                                                     21                                                        0 0 0 0 1 1 1 1 0 0 0 1 1 1 1 1                                                                     22                                                        0 1 1 1 1 1 0 0 0 1 1 1 0 0 1 0                                                                     22                                                        0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1                                                                     22                                                        1 0 1 0 1 0 0 0 1 1 0 0 1 1 1 1                                                                     22                                                        1 0 0 1 1 0 1 1 1 1 1 0 0 0 1 1                                                                     22                                                        1 0 0 0 0 0 1 0 0 1 1 1 0 1 1 0                                                                     23                                                        1 1 1 0 0 0 1 1 0 1 1 1 1 1 1 0                                                                     23                                                        0 1 1 1 0 0 1 0 0 1 0 0 0 0 1 1                                                                     23                                                        0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 1                                                                     23                                                        0 0 1 0 0 1 0 1 0 1 1 1 1 1 0 0                                                                     23                                                        1 1 0 1 1 0 1 1 0 1 0 1 0 1 0 0                                                                     24                                                        0 1 0 1 1 1 1 0 0 0 1 0 1 1 0 1                                                                     24                                                        0 0 1 0 1 1 0 1 0 1 1 0 1 0 0 0                                                                     24                                                        0 1 1 0 0 1 0 1 0 0 1 0 1 1 1 1                                                                     24                                                        1 1 0 0 1 1 0 1 0 0 1 1 1 1 1 0                                                                     24                                                        1 1 1 0 1 0 1 1 1 0 0 0 0 0 0 0                                                                     25                                                        1 0 0 1 1 1 1 0 0 1 1 1 0 1 1 1                                                                     25                                                        0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 1                                                                     25                                                        0 1 1 0 1 1 1 0 0 1 1 0 0 1 0 1                                                                     25                                                        0 0 0 1 0 1 1 1 1 1 1 1 0 0 1 1                                                                     25                                                        0 1 0 1 1 1 1 1 0 1 0 0 0 0 0 0                                                                     26                                                        0 0 0 0 1 0 1 1 0 0 0 0 0 1 1 0                                                                     26                                                        1 0 0 0 0 0 1 0 1 1 1 0 1 0 0 1                                                                     26                                                        1 1 1 0 1 0 0 0 0 1 0 0 1 1 1 1                                                                     26                                                        0 0 1 1 1 1 1 0 1 1 1 0 0 0 0 0                                                                     26                                                        1 0 0 1 1 0 0 0 1 0 1 0 0 1 1 0                                                                     27                                                        0 1 1 0 0 0 0 0 1 1 0 0 0 1 0 0                                                                     27                                                        0 1 0 0 1 0 1 1 0 1 0 1 1 0 1 1                                                                     27                                                        0 0 0 1 0 1 1 0 1 0 0 1 1 1 1 1                                                                     27                                                        1 0 1 0 0 1 0 1 1 0 1 0 0 1 1 0                                                                     27                                                        0 0 1 1 1 0 1 1 1 0 0 1 1 1 0 0                                                                     28                                                        0 0 1 1 0 1 0 1 0 0 0 0 1 1 0 1                                                                     28                                                        1 1 0 1 0 0 1 0 1 0 0 1 1 0 1 1                                                                     28                                                        1 0 0 1 1 1 0 1 1 0 1 1 1 0 1 1                                                                     28                                                        0 1 0 0 0 0 0 1 1 0 1 1 0 0 0 1                                                                     28                                                        1 1 1 1 1 0 0 0 1 0 1 1 1 0 0 0                                                                     29                                                        0 1 1 1 1 0 1 0 0 1 0 1 0 1 1 0                                                                     29                                                        1 0 1 1 1 0 1 0 0 1 0 0 1 1 1 0                                                                     29                                                        0 1 0 0 1 1 1 0 0 1 1 1 1 1 0 0                                                                     29                                                        0 1 1 1 0 1 1 0 1 1 0 1 1 1 0 0                                                                     29                                                        0 0 1 1 1 1 0 0 0 0 1 0 1 0 0 1                                                                     30                                                        1 1 1 0 1 0 1 1 1 0 1 0 1 0 0 0                                                                     30                                                        1 0 0 1 0 0 1 0 0 1 1 1 0 0 1 0                                                                     30                                                        1 0 0 1 1 1 1 1 0 1 0 1 1 1 0 1                                                                     30                                                        1 1 0 1 1 0 1 0 1 0 1 0 1 1 1 0                                                                     30                                                        1 1 1 1 0 0 1 0 0 0 1 1 0 0 1 1                                                                     31                                                        1 1 1 0 1 1 0 1 0 1 0 0 0 0 0 0                                                                     31                                                        0 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0                                                                     31                                                        0 1 1 0 1 1 1 1 0 0 1 1 1 0 1 1                                                                     31                                                        0 1 0 1 1 0 1 1 1 1 1 0 0 1 1 0                                                                     31                                                        1 0 1 1 0 0 1 0 1 1 1 0 1 0 1 0                                                                     32                                                        1 1 1 0 1 1 0 0 1 0 0 0 0 1 0 0                                                                     32                                                        1 1 1 0 0 1 0 1 0 1 1 0 1 1 1 1                                                                     32                                                        0 0 1 0 1 0 0 0 0 0 0 1 1 1 0 0                                                                     32                                                        1 0 0 1 0 0 1 1 0 0 0 1 1 1 0 1                                                                     32                                                        0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0                                                                     33                                                        1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0                                                                     33                                                        1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0                                                                     33                                                        1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0                                                                     33                                                        1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0                                                                     33                                                        0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0                                                                     34                                                        0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0                                                                     34                                                        0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0                                                                     34                                                        0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0                                                                     34                                                        0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0                                                                     34                                                        0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0                                                                     35                                                        0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0                                                                     35                                                        0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0                                                                     35                                                        0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0                                                                     35                                                        0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0                                                                     35                                                        0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1                                                                     36                                                        0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1                                                                     36                                                        0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1                                                                     36                                                        0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0                                                                     36                                                        0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1                                                                     36                                                        ______________________________________                                    

One embodiment of the invention has been described a number of changes can be made in this embodiment. For instance, the number of codeword bit positions on a card 10 could be changed. Therefore it should be understood that many modifications and changes can be made in the illustrated embodiment without departing from the spirit and scope of the invention as represented in the attached claims. 

Having thus described my invention, what I claim as new, and desire to secure by Letters Patent is:
 1. In an error correction system having a double bit error correction and triple bit error detection code for a memory in which bits of memory code words are divided into N memory packages of M bits per package, modularized error correction apparatus for correcting package errors including:encoder means for encoding data words into said code words for storage in said memory using a double error correction and triple error detection code characterized by an H matrix substantially as shown below ##EQU6## syndrome generation means for generating syndrome S from a codewords read from said memory, decode means responsive to the output of said syndrome generation means for identifying all possible single bit error syndromes of said codeword and all possible double bit error syndromes of said codeword; and means to determine the location of any single or double bit errors once they are identified by said decode means.
 2. The error correction system of claim 1 wherein decode means includes a table means being accessed by less than all the bits in syndrome S from said syndrome generation means to generate a first vector E₁ which identifies the location of a bit in error when said syndrome S has a non-zero value and E₁ ≠0,exclusive-OR circuits means T responsive to the output of said syndrome generating means for generating a second vector E₀ =T S^(t) from said syndrome S where S^(t) is the transpose of the syndrome S, second exclusive-OR means for exclusive-ORing said first and second vectors E₁ and E₀ bit position by bit position to generate a third vector E₂ which will identify a second error if E₂ is a non-zero number and the weight of S is odd.
 3. The error correction system of claim 2 wherein said decoder means includes uncorrectable error indication means which signals an uncorrectable error UE when E₁ =0 or E₂ ≠0 when S is even.
 4. The error correction system of claim 3 including table means responsive to said UE signal to indicate which of the N packages has failed.
 5. The error correction system of claim 2 includingGalois field number to binary sequence transformation means and a binary decoder means responsive to said vectors E₁ and E₂ to locate the bit position of errors identified by said vectors.
 6. The error correction system of claim 2 includes table lookup means responsive to E₂ to locate said second error when E₂ ≠0 and the weight of S is odd anddetection means responsive to the syndrome S and the second exclusive-OR means for providing the indication of an uncorrectable error if E₂ ≠0 and the weight of S is even to indicate a UE condition.
 7. In an error correction system having a double bit error correction and a triple bit error detection code for a memory and having means for the generation of a syndrome S from a codeword generated in accordance with said code, decoder table lookup means comprising,a table means for being accessed by less than all the bits in the syndrome S generated by said error correction system to generate a first vector E₁ which identifies the location of a bit in error when said syndrome S has a non-zero value and E≠0, exclusive-OR circuit means T responsive to said syndrome S for generating a second vector E₀ =TS^(t) from said syndrome S where S^(t) is the transpose of the syndrome S, and second exclusive-OR circuit means for exclusive-ORing said first and second vectors E₁ and E₀ bit position by bit position to generate a third vector E₂ which will identify a second bit error if S is a non-zero number and the weight of S is odd.
 8. The error correction system of claim 7 wherein said decoder means includes uncorrectable error indication means which signals an uncorrectable error UE when E₁ =0 or E₂ ≠0 when S is even.
 9. The error correction system of claim 8 including table means responsive to said UE signal to indicate which of the N packages has failed.
 10. The error correction system of claim 7 includingGalois field number to binary sequence transformation means and a binary decoder means responsive to said vectors E₁ and E₂ to locate the bit position of errors identified by said vectors.
 11. The error correction system of claim 7 includes table lookup means responsive to E₂ to locate said second error when E₂ ≠0 and the weight of S is odd, anddetection means responsive to the syndrome S and the second exclusive-OR means for determining if E₂ ≠0 and the weight of S is even to indicate an UE condition. 